home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
LIFE6__
/
PROTO
/
P
/
PIMENU_L.C
< prev
next >
Wrap
Text File
|
1991-08-16
|
2KB
|
52 lines
/* PIMenu_Life6 Initialize the menu bar */
/* Unit name: PIMenu_Life6.c */
/* Function: This module loads in the menu lists and places them */
/* into the menubar. */
/* History: 8/16/91 Original by Prototyper 3.0 */
#include "PCommonLife6.h" /* Common */
#include "Common_Life6.h" /* Common */
#include "PUtils_Life6.h" /* General Utilities */
#include "Utils_Life6.h" /* General Utilities */
#include "InitMenuLife6.h" /* Extra menu init */
#include "PIMenu_Life6.h" /* This file*/
/* ======================================================= */
/* Routine: Init_My_Menus */
/* Purpose: Load in the menu lists and initialize the menubar */
void Init_My_Menus()
{
ClearMenuBar(); /* Clear any old menu bars */
/* This menu is the APPLE menu, used for About and desk accessories. */
Menu_Apple = GetMenu(Res_Menu_Apple); /* Get the menu from the resource file */
InsertMenu (Menu_Apple,0); /* Insert this menu into the menu bar */
AddResMenu(Menu_Apple,'DRVR'); /* Add in DAs */
Menu_File = GetMenu(Res_Menu_File); /* Get the menu from the resource file */
InsertMenu (Menu_File,0); /* Insert this menu into the menu bar */
Menu_Edit = GetMenu(Res_Menu_Edit); /* Get the menu from the resource file */
InsertMenu (Menu_Edit,0); /* Insert this menu into the menu bar */
Menu_Life_Stuff = GetMenu(Res_Menu_Life_Stuff); /* Get the menu from the resource file */
InsertMenu (Menu_Life_Stuff,0); /* Insert this menu into the menu bar */
AddExtraMenus(); /* Add any extra menu lists */
DrawMenuBar(); /* Draw the menu bar */
} /* End of procedure Init_My_Menus */